package com.example.joke.base.ioc;

import android.app.Activity;
import android.os.AsyncTask;
import android.view.View;

import androidx.appcompat.app.AlertDialog;

public class ViewFinder {

    private Activity mActivity;

    private View mView;

    public ViewFinder(Activity activity) {
        this.mActivity = activity;
    }

    public ViewFinder(View view) {
        this.mView= view;

    }

    public View findViewById(int viewId) {
        return mActivity != null ? mActivity.findViewById(viewId) : mView.findViewById(viewId);
    }
}
